# num1 = "100"
# num2 = "1.99"
# print(type(int(num1)))
# print(type(float(num1)))
# info = 12345
# print(type(str(info)))
#
# info1 = [11,"aa",True,1.88]
# print(type(str(info1)))


# name = str(input("请输入姓名："))
# age= int(input("请输入年龄："))
# height = float(input("请输入身高："))
# print("{}今年{}岁了，他的身高是{}米".format(name,age,height))
# print("{0}今年{1}岁了，他的身高是{2}米".format(name,age,height))

# print(f"{name}今年{age}岁了，他的身高是{height}米")
# print(f"{name}明年{age+1}岁了，他的身高是{height+100}米")

# print(f"{name}同学的年龄是{age}岁了，他的身高是{height}米")

# num1 = 10
# num2 = 20
# print(f"求和结果: {num1 + num2}")
# print(f"求差结果: {num1 - num2}")
# print(f"求乘结果: {num1 * num2}")
# print(f"求商结果: {num1 / num2}")
# print(f"求余结果: {num1 % num2}")

# print(3 % 2 == 0)
# print(10 ** 3)
# # 特殊的求和: 字符串和字符串求和 ‐‐ > 字符串拼接
# print("10" + "20")
# # 特殊的乘法：字符串和数字相乘 ‐‐ > 字符串重复多少次
# print("10" * 3)

# name = input("请输入姓名：")
# age= int(input("请输入年龄："))
# height = float(input("请输入身高："))
# print("姓名类型：", type(name))
# print("年龄类型：", type(age))
# print("身高类型：", type(height))
# print(f"姓名：{name}，年龄：{age}，身高：{height}")
# print(f"{name}5年后的年龄是：{age+5}")
# print(f"{name}是否成年：{age>=18}")

# age = int(input("请输入用户年龄:"))
# if age >= 18:
#     print("允许进网吧happy~")
# else:
#     print("回家写作业")

# age= 19
# if 0 < age <120:
#     print("年龄正确")

# score = int(input("请输入分数："))
# if score >=90:
#     print("牛逼")
# elif 80 <= score < 90:
#     print("良好")
# elif 70 <= score < 80:
#     print("中等")
# elif 60 <= score <70:
#     print("差生")
# else:
#    print("不及格")

# has_ticket = input("请确认是否有票: ")
# if has_ticket:
#     knife_length = int (input("请输入刀的长度："))
#     if knife_length >=20:
#         print("不允许上车")
#     else:
#         print("案件通过，允许上车")
# else:
#               print("不允许进门")

# import  random
# num = random.randint(10, 20)
# print(num)

# import  random
# num1 = int(input("请输入出拳的数字(1/2/3): "))
# num2 = random.randint(1,3)
# print(f"你出了{num1}，电脑出了{num2}")
# if (num1 == 1 and num2 == 2) or (num1 == 2 and num2 == 3)or (num1 == 3 and num2 == 1):
#     print("傻逼电脑，不然我官人大帝一根")
# elif num1 == num2:
#     print("你是一个不错的对手，值得我使出全力")
# else:
#     print("大帝？大帝之下我无敌，大帝之上一换一")

# num = 1
# while num <= 5:
#     print(f"一共吃了{num}个苹果")
#     if num == 3:
#         print("我吃饱了，不吃了")
#         break
#     num += 1

# # 导入随机数据包
# import  random
# #定义转换函数
# def get_choice_name(num):
#  # 当输入的num是1，定义1是石头
#  if num == 1:
#     return "石头"
#  # 当输入的num是2，定义2是剪刀
#  elif num == 2:
#     return "剪刀"
#  # 当输入的num是3，定义3是布
#  else:
#     return "布"
# #  定义角色，通过input来进行提示，int把输入的字符串转换为整数，num1是储存变量的
# num1 = int(input("请输入出拳的数字(1=石头，2=剪刀，3=布）："))
# # 系统随机从1-3中选择出那个数字，开始到结束的范围【1，3】
# num2 = random.randint(1,3)
# # 通过f""格式化来输出用户与电脑的选项
# print(f"我出了{get_choice_name(num1)},电脑出了{get_choice_name(num2)}")
# # 通过if来进行判定，判定规则是石头》剪刀与剪刀》布与布》石头
# if (num1 == 1 and num2 == 2) or (num1 == 2 and num2 == 3) or (num1 == 3 and num2 == 1) :
#     print("我赢了，会一直赢下去")
# # 通过多重判断来进行，平局的规则，当用户与电脑相等会打印输出print
# elif num1 == num2:
#     print("大家一起赢吧")
# # 当条件不满足以上时，会打印输出print
# else:
#     print("人脑不过是出生在没有我的时代罢了")

# info = "itheima"
# for i in info:
#  if i == "e":
#     break
# print(i)

# for i in range(10):
#     print("媳妇,对不起我错了!")


# while True:
#  num1 = input("请输入用户名：")
#  if  num1 == "exit":
#   break
#  num2 = input("请输入密码：")
#  if num1 == "admin" and num2 == "123456":
#     print("登入成功")
#     break
#  else :
#     print("用户名密码错错误")
#     pass

# info1 = "D:\tools\noco"
# info2 = r"D:\tools\noco"
# info3 = "D:\\tools\\noco"
# info4 = '张三说："你很厉害"'
# print(info1)
# print(info2)
# print(info3)
# print(info4)

# info = "abcdefg"
# print(info[3])
# print(info.find("e"))
# print(info.find("k"))

# info = "苏官人今天的讲解很精彩但是不到三分钟"
# info1 = info.replace("苏官人","卢昌问")
# print(info)
# print(info1)

# info = ["python","java","html"]
# num = [11,12,13]
# info1 = "and".join(info)
# num_str = [str(n) for n in num]
# info2 = "-".join(num_str)
# print(info1)
# print(type(info1))
# print(info2)
# print(type(info2))

# sql = "SeLECt* from students where id = 001"
# print(sql.split())
# for i in sql.split():
#     print(i)
#     print(sql.split("where"))

# phone = " 138000000001 "
# print(phone)
# print(phone.strip())
# sql = "SeLECt* from students where id = 001"
# if "select" in sql.lower():
#     print("显示查询结果")
# else:
#      print("非查询")

# # 定义角色，通过input来进行提示，name，password，code存储变量，strip是字符串两头去除空格
# name = input("请输入手机号:").strip()
# password = input("请输入密码:").strip()
# code = input("请输入验证码:").strip()
# # 通过if来进行判断，输入name是空时，打印输出print
# if name == " ":
#         print("手机号不能为空")
# # 通过if来进行判断，输入password是空时，打印输出print
# if password == " ":
#         print("密码不能为空")
# # 通过if来进行判断，输入code是空时，打印输出print
# if code == " ":
#         print("验证码不能为空")
# # 通过if来进行判断，用len来进行长度验证，isdigit判断是数字，当长度不够11位与输入的不是数字，打印输出print
# if len(name) != 11 or not name.isdigit():
#         print("手机号格式错误，请输入11位数字")
# # 通过if来进行判断，lower判断是小写，当code不等于8888，打印输出print
# if code.lower() != "8888":
#         print("验证码与图片内容不一致")
# # 通过if来进行判断，当password不等于123456，打印输出print
# if password != "123456":
#         print("密码与账号不匹配")
# #  通过if来进行判断，当name不等于18776895770，打印输出print
# if name != "18776895770":
#         print("手机号不存在")
# # 通过if来进行判断，当name等于18776895770，password等于123456，code等于8888，打印输出print
# if name == "18776895770" and password == "123456" and code == "8888":
#         print("登入成功")

# info = []
# info1 = list()
# print(info)
# print(info1)
# info2 = [11,"aaa",1.88]
# print(info2)

# data_list = ['python' , 'java','python','php']
# num = data_list.count("python")
# print(num)
# print(data_list.count("java"))
# print(data_list.count("c++"))

# val_list = ["web自动化","ui自动化","接口自动化"]
# val_list.append("APP自动化")
# print(val_list)
# val_list.append(11)
# print(val_list)

# val_list = ["web自动化","ui自动化","接口自动化"]
# val_list.insert(1,"APP自动化")
# print(val_list)
# val_list.insert(6,"java")
# print(val_list)

# info1 = [1,2,3]
# info2 = [4,5,6]
# info1.extend(info2)
# print(info1)
# info2.extend(info1)
# print(info2)

# val_list = ["web自动化","ui自动化","接口自动化","APP自动化","java"]
# val_list.pop(2)
# print(val_list)
# val_list.pop()
# print(val_list)

